home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94b.txt / 000046_icon-group-sender _Tue Sep 6 08:57:38 1994.msg < prev    next >
Internet Message Format  |  1995-02-09  |  3KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 6 Sep 1994 11:46:15 MST
  2. Date: Tue, 06 Sep 1994 08:57:38 -0600 (CST)
  3. From: Chris Tenaglia | 456-8765 <TENAGLIA@MIS.MCW.EDU>
  4. Subject: Re: Use of Icon to process WWW output
  5. To: m.datko@ic.ac.uk
  6. Cc: icon-group@cs.arizona.edu
  7. Message-Id: <01HGSB1KMOAA8WWKFN@mis.mcw.edu>
  8. Organization: Medical College of Wisconsin (Milwaukee, WI)
  9. X-Vms-To: IN%"m.datko@ic.ac.uk"
  10. X-Vms-Cc: IN%"icon-group@cs.arizona.edu"
  11. Mime-Version: 1.0
  12. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  13. Content-Transfer-Encoding: 7BIT
  14. Errors-To: icon-group-errors@cs.arizona.edu
  15.  
  16.  
  17. I've had to write an intercepter for downloads. For some reason
  18. files download with a # prepended to the filename. I also want the
  19. file to end up in a certain holding tank. Maybe I could have done
  20. this better if I knew my mosaic.ini better. The module I wrote so
  21. far is xfer.icn and here's what it looks like:
  22.  
  23. #######################################################################
  24. # file : xfer.icn
  25. # desc : disguised copy command because DOS doesn't have a COPY.EXE
  26. # use  : do xfer file destination
  27. #
  28. # update          by         what
  29. # 12-aug-1994     tenaglia   initial write
  30. #
  31. procedure main(param)
  32.   source := param[1]
  33.   target := param[2]
  34.   command:= "COPY " || source || " " || target || "\\" || source[2:0]
  35.   write("Performing => ",command)
  36.   input("Press <ENTER> to continue.")
  37.   system(command)
  38.   end
  39.  
  40. procedure input(prompt)
  41.   writes(prompt)
  42.   return read()
  43.   end
  44. ########################################################################
  45.  
  46. Then in mosaic.ini I made the following changes:
  47.  
  48. under [Viewers]
  49. TYPE7="binary/download"
  50. binary/download="c:\bin59\iconx.exe c:\bin59\xfer %ls \tmp\hold"
  51.  
  52. under [Suffixes]
  53. binary/download=.zip,.lzh,.com,.exe,.arc,.Z
  54.  
  55. Note: I'm using icon v5.9 because of memory problems in my environment.
  56.  
  57. Chris Tenaglia (System Manager) | Medical College of Wisconsin
  58. 8701 W. Watertown Plank Rd.     | Milwaukee, WI 53226
  59. (414)456-8765                   | tenaglia@mis.mcw.edu
  60.  
  61. > From:    IN%"m.datko@ic.ac.uk"  5-SEP-1994 14:42:57.97
  62. > To:    IN%"icon-group-l@cs.arizona.edu"
  63. > Subj:    Use of Icon to process WWW output
  64.  
  65. > I would be interested to hear if anyone is using icon to process
  66. > material 'received' from html form output.
  67.  
  68. > I have colleagues who are using C and Perl to do this but given my
  69. > familiarity with the string processing in Icon, I would like to use
  70. > it to do the job.
  71.  
  72. > Has anybody done this ! I'm a novice when it comes to html and WWW
  73. > so  'newbie' replies welcome !
  74.  
  75. > Mark Datko
  76. > Computer Officer
  77. > Department of Mathematics IC
  78.  
  79.